/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.device.intf;

/**
 *
 * @author hstel-hxg
 */
public class VlanL2 implements AbstractIntf, Comparable<VlanL2> {

    int vlan;
    String index;

    public int getVlan() {
        return vlan;
    }

    public void setVlan(int vlan) {
        this.vlan = vlan;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    @Override
    public String getIndex() {
        return index;
    }

    @Override
    public String toString() {
        return String.valueOf(vlan);
    }

    @Override
    public int compareTo(VlanL2 o) {
        return this.getVlan() - o.getVlan();
    }
}
